package org.jdcenter.jndi.context;

import javax.naming.NameParser;
import javax.naming.NamingException;

import org.jdcenter.jndi.naming.JDSNameParser;

public abstract class RMIContext extends ContextImpl implements StubContext {

	protected NameParser parser = new JDSNameParser();
	
	public void bind(String name, Object obj) throws NamingException {
        bind(parser.parse(name),obj);
    }

    public void rebind(String name, Object obj) throws NamingException {
        rebind(parser.parse(name),obj);
    }

    public void unbind(String name) throws NamingException {
        unbind(parser.parse(name));
    }

    public Object lookup(String name) throws NamingException {
    	return lookup(parser.parse(name));
    }
	
}
